﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace chaoshiguanli
{
    public partial class Form3 : Form
    {
        
        public Form3()
        {
            InitializeComponent();
        }
         
        public Employee employee;

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.label1.Parent = this.pictureBox3;
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {


        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
        }

        private void button6_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            /*Form1 form1 = new Form1();
            panel2.Controls.Clear();
            form1.TopLevel = false;
            form1.Dock = System.Windows.Forms.DockStyle.Fill;
            form1.FormBorderStyle = FormBorderStyle.None;
            form1.TopLevel = false;
            panel2.Controls.Add(form1);
            form1.Show();*/
        }


        private void panel2_Paint(object sender, PaintEventArgs e)
        {
            
        }

        private void Form3_Load(object sender, EventArgs e)
        {

        }
        public static void ShowFormInPanel(Form form, ScrollableControl panel)
        {
            form.TopLevel = false;
            form.FormBorderStyle = FormBorderStyle.None;
            form.Dock = DockStyle.Fill;
            panel.Controls.Clear();
            panel.Controls.Add(form);
            form.SuspendLayout();
            form.Show();
            form.ResumeLayout();
        }

        private void button8_Click(object sender, EventArgs e)
        {
            
            
            
        }

        private void button8_MouseClick(object sender, MouseEventArgs e)
        {
            //管理员密码验证
            //PassEx passEx = new PassEx();
            //passEx.Show();

            //if (employee.reusle)
            //{
                //
                Statistics statistics = new Statistics();
                panel2.Controls.Clear();
                statistics.TopLevel = false;
                statistics.Dock = System.Windows.Forms.DockStyle.Fill;
                statistics.FormBorderStyle = FormBorderStyle.None;
                statistics.TopLevel = false;
                panel2.Controls.Add(statistics);
                statistics.Show();
           // }
        }
    }
}
